Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PodProbeMarker http/tcp capacities #1321

Conversation

nitishchauhan0022
Copy link
Contributor

Ⅰ. Describe what this PR does

Support for PodProbeMarker http/tcp capacities

Ⅱ. Does this pull request fix one issue?

fixes #1306

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign fei-guo for approval by writing /assign @fei-guo in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kruise-bot kruise-bot added the size/L size/L: 100-499 label Jun 25, 2023
Signed-off-by: ntishchauhan0022 <[email protected]>
@@ -44,6 +44,7 @@
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/apimachinery/pkg/watch"
v1core "k8s.io/client-go/kubernetes/typed/core/v1"
runtimeclient "sigs.k8s.io/controller-runtime/pkg/client"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

42% of developers fix this issue

gofmt: File is not gofmt-ed with -s


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitishchauhan0022 you need resolve the gofmt check.

@@ -407,6 +411,25 @@ func (c *Controller) fetchLatestPodContainer(podUID, name string) (*runtimeapi.C
return containerStatus, err
}

func (c *Controller) fetchPodIp(podUID, name, namespace string) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our internal cluster is quite large and there are performance issues if Daemon needs to watch Pod resources, so it is recommended that Pod IP can be passed down directly from the NodePodProbeSpec resource.

if p.Exec != nil {
return pb.exec.Probe(pb.newExecInContainer(containerID, p.Exec.Command, timeout))
}

// for probing using tcp method
if p.TCPSocket.Port.IntVal != 0 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitishchauhan0022
Copy link
Contributor Author

Thanks @zmberg for reviewing, I will make the changes as per the feedback.

@zmberg
Copy link
Member

zmberg commented Jul 4, 2023

@nitishchauhan0022 Can you join kruise dingding to communicate with me?

@kruise-bot
Copy link

@nitishchauhan0022: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nitishchauhan0022 nitishchauhan0022 marked this pull request as ready for review August 18, 2023 09:36
Copy link

stale bot commented Nov 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 16, 2023
@stale stale bot closed this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase size/L size/L: 100-499 wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PodProbeMarker Support http/tcp capacities
3 participants